<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title><?php echo ($name); ?> <?php echo ($site_name); ?> <?php echo ($site_seo_title); ?></title>
<meta name="keywords" content="<?php echo ($site_seo_keywords); ?>" />
<meta name="description" content="<?php echo ($site_seo_description); ?>" />
<link rel="icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" media="screen" />
<link href="/yxtcmf/public/simplebootx/public/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/common.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/main.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/es-icon.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/iconfont.css" />
<link href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/theme.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/pintuer/pintuer.css" />
<link href="/yxtcmf/public/js/artDialog/skins/default.css" rel="stylesheet" />
<!--[if lt IE 9]>    
	<script src="/yxtcmf/public/simplebootx/public/js/html5shiv.js"></script>   
	<script src="/yxtcmf/public/simplebootx/public/js/respond.min.js"></script>  
<![endif]-->
</head>
<body>	
	<header class="navbar">		
		<div class="container">			
			<div class="clearfix navbar-top">				
				<a href="/yxtcmf/"><img src="/yxtcmf/public/simplebootx/public/images/logo.png" class="pull-left logo-left"></a>				
				<button class="navbar-toggle pull-left" type="button" data-toggle="collapse" data-target=".navbar-collapse">		
					<span class="sr-only">Toggle navigation</span>			
					<span class="icon-bar"><i class="iconfont icon-gengduo"></i></span>		
					<span class="icon-bar"></span>				
					<span class="icon-bar"></span>				
				</button>				
				<form class="navbar-form hidden-xs" role="search" action="<?php echo u('Course/Course/search');?>" method="post">					
					<div class="form-group">					
						<input type="search" placeholder="搜索课程" class="form-control js-search" name="keywords">				
					</div>					
					<button type="submit" class="button iconfont icon-search"></button>				
				</form>				
				<!--<a class="pull-right hidden-xs">					
					<i class="iconfont icon-mianfeidianhua icon"></i>				
					<span class="telephone">全国服务热线：<?php echo ($kefu_tel); ?></span>			
				</a>-->			
				<!--<div class="navbar-user pull-right visible-xs"  style="top:16px;" >					
				<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">														
						<li class="info-img">
							<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 		
								<span><?php echo ($user_nicename); ?></span> <i class="iconfont icon-xia"></i> 
							</a>								
									<ul class="dropdown-menu menu-ul" role="menu">									
										<li><a href="<?php echo U('User/Center/setting');?>">
											<i class="iconfont icon-shezhi"></i>个人设置</a></li>										
										<li><a href="<?php echo u('user/center/count');?>"><i class="iconfont icon-001"></i> 账户中心</a></li>										
											<li><a href="<?php echo u('user/center/application');?>"><i class="iconfont icon-001"></i> 成为教师</a></li>								
										<li><a href="<?php echo U('user/index/logout');?>"><i class="iconfont icon-tuichu"></i>退出登录</a></li>									
									</ul>								
						</li>					
					</ul>					
				<?php else: ?>						
					<ul class="nav navbar-nav navbar-right">							
						<li><a href="<?php echo leuu('User/Login/index');?>"> 登录</a></li>							
						<!--<li>｜</li>							
						<li><a href="<?php echo leuu('User/Register/index');?>">注册</a></li>			
					</ul><?php endif; ?>-->				
				</div>			
			</div>		
		</div>		
		<nav class="nav-collapse">			
			<div class="container">				
				<div class="navbar-header">					
					<ul class="nav navbar-left navbar-collapse collapse">						
						<li class=""><a href="/yxtcmf/" class="">首页 </a></li>						
						<li class=""><a href="<?php echo leuu('Course/Course/coursecenter');?>" class="">精品课程</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Teacher/Teacher/index');?>" class="">金牌讲师</a></li>						
						<li class=""><a href="<?php echo leuu('Exam/Shiti/index');?>" class="">在线题库</a></li>-->						
						<li class=""><a href="<?php echo leuu('Portal/Index/article');?>" class="">党建新闻</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Forum/Plate/index');?>" class="">交流论坛</a></li>-->						
						<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""><a href="<?php echo (sp_get_href($vo['href'])); ?>" class=""><?php echo ($vo['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>					
					</ul>				
				</div>				
				<div class="navbar-user hidden-xs">				
					<ul class="nav navbar-nav navbar-right">						
					<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">							
							<?php if($user_type == 3): ?><li><a href="<?php echo u('Teacher/Center/index');?>" class="nav-study">我的教室</a></li>							
							<?php else: ?>								
								<li><a href="<?php echo u('User/Center/index');?>" class="nav-study">我的教室</a></li><?php endif; ?>								
								<li class="info-img">
									<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 				
										<?php if(empty($avatar)): ?><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="img-circle" />		
										<?php else: ?> 										
											<img src="<?php echo sp_get_user_avatar_url($avatar);?>?t=<?php echo time();?>" class="img-circle" /><?php endif; ?> 									
										<span><?php echo ($user_nicename); ?></span> <i class="icon-caret-down"></i> 
									</a>									
									<ul class="dropdown-menu menu-ul" role="menu">								
										<li><a href="<?php echo u('User/Center/setting');?>"><i class="icon-cogs"></i>个人设置</a></li>		
										<li><a href="<?php echo u('user/center/count');?>"><i class="icon-desktop"></i> 账户中心</a></li>	
										<li><a href="<?php echo u('user/center/application');?>"><i class="icon-graduation-cap"></i> 成为教师</a></li>	
										<li><a href="<?php echo U('user/index/logout');?>"><i class="icon-power-off"></i>退出登录</a></li>	
									</ul>								
								</li>						
						</ul>					
					<?php else: ?>				
						<ul class="nav navbar-nav navbar-right">							
							<li><a href="<?php echo leuu('User/Login/index');?>"> <span class="glyphicon glyphicon-log-in"></span>&nbsp&nbsp登录</a></li>	
							<!--<li><a href="<?php echo leuu('User/Register/index');?>"><span class="glyphicon glyphicon-user"></span>&nbsp&nbsp注册</a></li>-->	
						</ul><?php endif; ?>					
					</ul>				
				</div>			
			</div>		
		</nav>    
	</header>  
<div id="content-container" class="container">
     <!--<?php if(empty($avatar)): ?><div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没有头像</strong>。拥有一个独有的头像，老师和同学们能更容易关注到你哦～～ <a href="<?php echo u('user/center/pic');?>"" class="alert-link" target="_blank">点击设置</a>
	  </div>
	  <?php else: ?>
	    <?php if(empty($user['user_nicename'])): ?><div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没设置昵称</strong>。请到个人设置里面设置～～ <a href="<?php echo u('user/center/setting');?>" class="alert-link" target="_blank">点击设置</a>
         </div><?php endif; endif; ?>-->
      <div class="row row-3-9">
        <div class="col-md-3">
           <div class="sidenav">
              <ul class="list-group">
              <?php if($user_type != 2): ?><li class="list-group-heading">我的教学</li>
               <li class="list-group-item "><a href="<?php echo u('teacher/Center/index');?>">课程管理</a></li>
               <li class="list-group-item "><a href="<?php echo u('teacher/Center/createcourse');?>">课程发布</a></li>
               <li class="list-group-item "><a href="<?php echo u('teacher/Center/sales');?>">课程订单</a></li>
			   <li class="list-group-item "><a href="<?php echo u('teacher/Center/checkpaper');?>">试卷批阅</a></li>
			   <li class="list-group-item "><a href="<?php echo u('teacher/Center/ziyuanku');?>">我的资源库</a></li><?php endif; ?>
               <li class="list-group-heading" style="margin-top:10px;">我的学习</li>
               <li class="list-group-item " ><a href="<?php echo u('user/center/index');?>">我的课程</a></li>
			   <li class="list-group-item active" ><a href="<?php echo u('user/center/myeaxm');?>">我的考试</a></li>
			   <li class="list-group-item " ><a href="<?php echo u('user/center/myerrors');?>">我的错题</a></li>
               <li class="list-group-item"  ><a href="<?php echo u('user/center/jihuo');?>">激活课程</a></li>
               <li class="list-group-heading" style="margin-top:10px;">个人设置</li>
               <li class="list-group-item "><a href="<?php echo u('user/center/setting');?>"> 基础信息</a></li>
               <li class="list-group-item "><a href="<?php echo u('user/center/pic');?>">头像设置</a></li>
               <li class="list-group-item "><a href="<?php echo u('user/center/security');?>">修改密码</a></li>          
               <li class="list-group-heading" style="margin-top:10px;">账户中心</li>
               <li class="list-group-item "><a href="<?php echo u('user/center/count');?>">我的账户</a></li>
               <li class="list-group-item "><a href="<?php echo u('user/center/order');?>">我的订单</a></li>
               <li class="list-group-item "><a href="<?php echo u('user/center/card');?>">点卡充值</a></li>
            </ul>
          </div>
        </div>
        <div class="col-md-9">
			<div class="panel panel-default panel-col">
				<div class="panel-heading">
					我的考试
				</div>
				<div class="panel-body">
					<table class="table table-striped table-hover">
						<tbody>
							<?php if(is_array($myexam)): $key = 0; $__LIST__ = $myexam;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($key % 2 );++$key;?><tr>
									<td ><?php echo ((isset($vo['title']) && ($vo['title'] !== ""))?($vo['title']):"<font color='blue'>课程已删除</font>"); ?>
										<div>
											<small class="text-muted">来自课程《<?php echo (getcoursename($vo['cs_id'])); ?>》</small>
											<small class="text-muted mhs">•</small>
											<small class="text-muted" title="开始考试时间"><?php echo ($vo['addtime']); ?></small>
										</div>
									</td>

									<td width="35%">
									<?php if($vo['readover'] == 0): ?><span class="text-muted">得分<strong class="text-warning">正在批改中...</strong></span>
									<?php else: ?>
									    <span class="text-muted">得分<strong class="text-warning"><?php echo ($vo['score']); ?></strong>分</span><?php endif; ?>
									</td>
									<td width="10%">
										<a href="<?php echo u('Exam/Shiti/result',array('id'=>$vo['papersid']));?>" class="btn btn-default btn-sm" target="_blank">查看结果</a>
									</td>
								</tr><?php endforeach; endif; else: echo "" ;endif; ?> 	
						</tbody>
					</table>
					 <nav class="text-center"><div class="pagination text-center"><?php echo ($Page); ?></div></nav> 
					 <?php if(empty($myexam)): ?><div class="empty">暂无考试</div><?php endif; ?>
				</div>
				 
			</div>
		</div>
	</div>	
</div>	
<script type="text/javascript">
var GV = {
    DIMAUB: "/yxtcmf/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<script>
	  
</script>
<script src="/yxtcmf/public/js/jquery.js"></script>
<script src="/yxtcmf/public/js/wind.js"></script>
<script src="/yxtcmf/public/js/bootstrap.min.js"></script>
<script src="/yxtcmf/public/js/frontend.js"></script>
<script src="/yxtcmf/public/js/artDialog/artDialog.js"></script>
  <!--<div class="es-footer-link">
   <div class="container">
     <div class="row">
       <div class="col-md-12 footer-main clearfix">
       <?php if(is_array($dnav)): $i = 0; $__LIST__ = $dnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="link-item ">
           <h3><?php echo ($vo['label']); ?></h3>
           <ul>
            <?php if(is_array($vo['voo'])): $i = 0; $__LIST__ = $vo['voo'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li><a href="<?php echo (sp_get_href($sub['href'])); ?>" target="_blank"><?php echo ($sub['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
           </ul>
         </div><?php endforeach; endif; else: echo "" ;endif; ?>  
     </div>
    </div>
	<div class="fr_link">
	  <div class="yq_lk">
	     <h3>友情链接</h3>
		 <?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo['link_url']); ?>"  target="<?php echo ($vo['link_target']); ?>" title="<?php echo ($vo['link_name']); ?>"><?php echo ($vo['link_name']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
	  </div>
	</div>       
  </div>
 </div>-->
<div class="layout fixed-bottom bg-main bg-inverse hidden-s  hidden-m hidden-b">
	<div class="container text-center padding-top padding-bottom">
        <div class="x3"><a class="icon-home" href="/yxtcmf/"> 首页</a></div>
        <div class="x3"><a class="icon-book" href="<?php echo U('Course/course/coursecenter');?>"> 课程</a></div>
        <div class="x3"><a class="icon-comments" href="<?php echo U('portal/index/article');?>"> 新闻</a></div>
        <div class="x3">
			<?php if(session('?user')): ?><a class="icon-user" href="<?php echo U('User/center/index');?>"> 我的</a>
			<?php else: ?>
			<a class="icon-user" href="<?php echo U('User/login/index');?>"> 我的</a><?php endif; ?>
		</div>
    </div>
</div>

<div class="container-layout">
    <div class="border-top padding-top">        
        <div class="text-center height-big margin">
           考试系统后端 @ 版权所有【2017-2020】
		</div>
    </div>
</div>
<!--<footer class="es-footer">
  <div class="copyright">
    <div class="container">设计开发： 
		<a href="/yxtcmf/" target="_blank"><?php echo ($site_name); ?></a>©2017-2020 <a class="mlm" href="/yxtcmf/" target="_blank"></a>      
    </div>
  </div>
</footer>-->    
</body>
</html>